package dao;

import java.util.List;

import entity.User;
import entity.User_Inf;

public interface UserDao {
	int addUser(User user);
	User queryUserByLoginNameAndPassword(String loginName,String password);
	User queryUserByName(String loginName);
	User_Inf queryUserByUsername(String userName);
	List<User> selectAllUser();//查询所有user
	//向user_login中存入
	boolean savaUser(User user);
	//向user_inf中存入邮箱和手机还有性别
	boolean saveUserOtherInfo(User_Inf user_inf);
}
